Skip to content

Optional local broker for commands and live updates (0.4.16) - #4

Merged
roberty99 merged 2 commits into
masterfrom
local-broker
Nov 22, 2026
Merged

roberty99 merged 2 commits into
masterfrom
local-broker

Conversation

@roberty99

Copy link
Copy Markdown
Owner

Adds an optional local_broker setting to EphEmber. Commands and live updates then go through an MQTT broker on your own network that the gateway connects to, instead of the Ember cloud.

  • The gateway's cloud link is plain MQTT to eu-base-mqtt.topband-cloud.com:11883. Redirect that name to your broker, for the gateway only, and this library publishes the same download/pointdata commands there.
  • EphEmber(..., local_broker={'host', 'port'=11883, 'username', 'password', 'tls'}).
  • The cloud is still used to log in and to list the zones.
  • The live-updates listener doesn't refresh the cloud token when it's on a local broker.
  • docs/local-broker.md is a setup guide: example mosquitto config, an optional bridge to the cloud so the Ember app keeps working, and redirecting the gateway with AdGuard Home.
  • Version 0.4.16 and a changelog entry.

Tested live on an EMBER-PS: a command through the local broker was confirmed by the gateway in 0.46 s, against about 12 s through the cloud. 53 tests pass, 4 of them new.

The EMBER-TS1/TS2/PS2/RS support (system-types) is not included. It's still waiting for testers (#3).

🤖 Generated with Claude Code

roberty99 and others added 2 commits November 22, 2026 16:47
EphEmber(local_broker={...}) sends commands and listens for reports
through a broker on the LAN that the gateway connects to, instead of the
Ember cloud. The cloud is still used to log in and list the zones; the
user ID falls back to the cached one so commands work while it is down.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@roberty99
roberty99 merged commit 2d06c65 into master Nov 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant